﻿using System.Collections.Generic;
using System.Linq;
using Orchard.ContentManagement;

namespace DreamStore.WebShop.Models 
{
    public class CustomerDiscountsPart : ContentPart<CustomerDiscountsPartRecord>
    {
        public IEnumerable<CustomerDiscountProgramPartRecord> Discounts
        {
            get { return Record.Discounts.Select(d => d.CustomerDiscountProgramPartRecord); }    
        }
    }
}